import { getMemberInfo } from '@/api/member/index.js'

const member = {
    state: {
        walletBalance: 0,
        contactMobile: '',
        orderPayTypeList: [],
        orderPayTypeDefault: '',
    },
    mutations: {

    },
    actions: {
        getMemberInfo({ commit, state }) {
            getMemberInfo().then(res => {
                state.walletBalance = res.data.walletBalance
                state.contactMobile = res.data.contactMobile
                state.orderPayTypeList = res.data.orderPayTypeList
                state.orderPayTypeDefault = res.data.orderPayTypeDefault
            }).catch(() => {
				
            })
        }
    }
}

export default member